<div class="container">
  <h1>get_last_part()</h1>
  <p class="signature"> function get_last_part(string $str, string $delimiter = '-'): string </p>
  <h2>Description</h2>
  <div class="description">
    <p>Retrieves the last part of a string based on a delimiter.</p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
        <th>Default</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>$str</td>
        <td>string</td>
        <td>The input string to retrieve the last part from.</td>
        <td>N/A</td>
      </tr>
      <tr>
        <td>$delimiter</td>
        <td>string</td>
        <td>Optional. The delimiter used to split the string (default: '-').</td>
        <td>-</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <table>
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>string</td>
        <td>The last part of the input string.</td>
      </tr>
    </tbody>
  </table>
  <h2>Example Usage</h2>
  <div class="example">
    <pre>
echo get_last_part("example-string-123");
// Output: '123'

echo get_last_part("example string", ' ');
// Output: 'string'</pre>
  </div>
</div>
